array.js ➔ ???   A
last analyzed

Complexity

Conditions 1
Paths 3

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 3
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
nop 1
1
export const _isArray = value => {
0 ignored issues
show
Unused Code introduced by
The constant _isArray seems to be never used. Consider removing it.
Loading history...
2
    return (value !== null &&
3
           value.length >= 0 &&
4
           Object.prototype.toString.call(value) === '[object Array]');
5
};
6
7
export const _pop = array => {
0 ignored issues
show
Unused Code introduced by
The constant _pop seems to be never used. Consider removing it.
Loading history...
8
    let newarray = [];
9
    for(let i = 0; i < array.length-1; i++){
10
        newarray[i] = array[i];
11
    }
12
    return newarray;
13
};
14